package com.xuecheng.manage_cms.controller;

import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.manage_cms.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
public class SystemController {
    @Autowired
    SystemService systemService;

    @GetMapping("/dictionary/get/{dtype}")
    public QueryResponseResult getDictionary(@PathVariable("dtype") String type){
        return systemService.findDataByType(type);
    }
}
